import { BoxProps } from 'nextcae-base/src/dialogs/component/types';
import { CommandDialogPlacement, ObjInfo } from '@amcax/base';

export interface excelType extends BoxProps {
  onClose: () => void;
  onChange: any;
  title: string;
}
export interface ButtonGroupsProps {
  onImport?: React.ChangeEventHandler<HTMLInputElement>;
  onExport?: () => void;
  onDeleteAll?: () => void;
  btnDisabled?: boolean;
}
export interface footerButtonsProps {
  onClose?: () => void;
  handleSubmit?: () => void;
  btnDisabled?: boolean;
}
export interface tableProps {
  initialData?: TableData[];
  onDataChange?: (data: TableData[]) => void;
}
export interface TableData {
  key: string;
  x: number;
  y: number;
  z: number;
}
export enum ContextType {
  InsertRowAbove = 'Insert row above',
  InsertRowBelow = 'Insert row below',
  DeleteRow = 'Delete selected row',
  DeleteAll = 'Delete all rows',
}

export interface TopoDialogProps {
  title: string;
  placement?: CommandDialogPlacement;
  props?: ObjInfo;
  onClose: () => void;
}
